﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Views.Simple
{
    public partial class Feedbacksubmit : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request["content"] != null)
                {
                    sdsFeedBack.InsertParameters["Category"].DefaultValue = HttpUtility.UrlDecode(Request["category"].ToString());
                    sdsFeedBack.InsertParameters["Body"].DefaultValue = HttpUtility.UrlDecode(Request["content"].ToString());
                    sdsFeedBack.InsertParameters["Contact"].DefaultValue = HttpUtility.UrlDecode(Request["contact"].ToString());
                    sdsFeedBack.Insert();
                }
                else
                {
                    Response.Redirect("/");
                }
            }
        }
    }
}
